import { SET_FREND_ID } from "../action/frend";

const initState = {
  activeFrendId: ""
};
type Action = {
  type: any;
  payload: string;
};
const frendReducer = (state = initState, action: Action) => {
  const { type, payload } = action;
  switch (type) {
    case SET_FREND_ID:
      return {
        ...state,
        activeFrendId: payload
      };
    default:
      return state;
  }
};

export default frendReducer;
